{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% block title %}{% endblock %}
    <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
    <script type="text/javascript" src="{% static 'js/jquery-3.7.1.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.js' %}"></script>

</head>
<body>
{#网页的头部#}
<nav class="navbar navbar-default">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">OA</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="{% url 'echarts_page' %}">数据可视化</a></li>
                {% if request.session.username == 'super' %}
                    <li><a href="{% url 'user_list' %}">用户管理</a></li>
                {% endif %}
                <li><a href="{% url 'dept_list' %}">部门管理</a></li>
                <li><a href="{% url 'emp_list' %}">员工管理</a></li>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">{{ request.session.username }}<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'user_personal_pwd' %}">密码修改</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="{% url 'user_logout' %}">安全退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
{#网页主体区域#}
<div class="container">
    {% block content %}
    {% endblock %}
</div>

{% block js %}{% endblock %}
</body>
</html>